package eclipse1;

public class Point {
    int coordinateX;
    int coordinateY;

    public double distance(){
        return Math.sqrt(coordinateX * coordinateX + coordinateY * coordinateY);
    }

    @Override
    public String toString(){
        return  "("+coordinateX+","+coordinateY+")";
    }
}
